package com.loan.service;
import java.util.Arrays;
import java.util.Map;

import com.jfinal.plugin.activerecord.Page;
import com.loan.model.Company;

public class CompanyService extends BaseService<Company>{
	
	/** 
	 * 分页数据
	 */
	public Page<Company> list(int page, int size, Map<String, String> map) {
		return Company.dao.paginate(page, size, buildSql("company",Arrays.asList("type", "name", "status"),map," order by create_time asc "));
	}
}
